package testDemo2;

import java.sql.SQLOutput;

public class Shape {
    public void draw() {
        System.out.println("画图形！");
    }
}

class Cycle extends Shape {
    @Override
    public void draw() {
        System.out.println("画一个圆");
    }
}

class Rect extends Shape {
    @Override
    public void draw() {
        System.out.println("画一个矩形");
    }
}

class Flower extends Shape {
    @Override
    public void draw() {
        System.out.println("花一朵花");
    }
}

